package com.yzt.minemodule.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.zhuju.network.entity.mine.MineMenuBean;
import com.yzt.minemodule.R;

import org.jetbrains.annotations.NotNull;

/**
 * author : bob
 * date   : 2022/12/1
 * desc   :
 */
public class MineMenuAdapter extends BaseQuickAdapter<MineMenuBean, BaseViewHolder> {

    public MineMenuAdapter() {
        super(R.layout.item_mine_menu);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, MineMenuBean mineMenuEntity) {
        holder.setImageResource(R.id.iv_menu_icon, mineMenuEntity.getResourceId());
        holder.setText(R.id.tv_menu_name, mineMenuEntity.getMenuName());
        holder.setText(R.id.tv_num, mineMenuEntity.getValue());
    }
}
